//
//  PageControl.m
//  HealthStarApp
//
//  Created by zhumuzhi on 2019/12/21.
//  Copyright © 2019 zhumuzhi. All rights reserved.
//

#import "PageControl.h"

@interface PageControl ()



@end

@implementation PageControl

#pragma mark - SetData

- (void)setCurrentPage:(NSInteger)currentPage {
    _currentPage = currentPage;
    
}

- (void)setNumberOfPages:(NSInteger)numberOfPages {
    _numberOfPages = numberOfPages;
    
}

#pragma mark - Init

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
//#define StrDate(s)          (s==nil ? [NSDate date] : s)
//        
//#define StrNull(f)          (f==nil || ![f isKindOfClass:[NSString class]] || ([f isKindOfClass:[NSString class]] && [f isEqualToString:@""]))
//
//#define SafeStr(f)          (StrValid(Str(f)) ? f:@"")
//        
//#define StrValid(f)         (f!=nil && [f isKindOfClass:[NSString class]] && ![f isEqualToString:@""])
// 
//#define Str(s) ([s isKindOfClass:[NSNull class]] || s==nil || ![s isKindOfClass:[NSString class]] || [s isEqualToString:@"(null)"] || [s isEqualToString:@"null"] || [s isEqualToString:@"<null>"] || [s isEqualToString:@"<nil>"] ? @"" : s)
//        
//        NSString *n;
//        ([s isKindOfClass:[NSNull class]] || s==nil || ![s isKindOfClass:[NSString class]] || [s isEqualToString:@"(null)"] || [s isEqualToString:@"null"] || [s isEqualToString:@"<null>"] || [s isEqualToString:@"<nil>"] ? @"" : s);
        
//        ([n isKindOfClass:[NSNull class]] ||
//         n==nil ||
//         ![n isKindOfClass:[NSString class]] ||
//         [n isEqualToString:@"(null)"] ||
//         [n isEqualToString:@"null"] ||
//         [n isEqualToString:@"<null>"] ||
//         [n isEqualToString:@"<nil>"]
//         ? @"" : n);
        
        NSString *s;
        if ([s isEqualToString:@""]) {
            
        }
    }
    return self;
}


@end
